package com.zhangfb95.crosschain.server.service;

import com.zhangfb95.crosschain.server.infra.model.mapper.entity.User;

/**
 * @author zhangfubing
 * @since 2023/10/19
 */
public interface UserService {

    void add(User user);

    void updateUsername(Long id, String username);

    void updatePassword(Long id, String password);

    void updateSecret(Long id, String secret);

    User getUserByUsername(String username);

    User getUserById(Long id);
}
